package com.boil.qz.safekavass.weixin.model.reply;

/**
 * Created by ChenYong on 2017-04-28.
 * <br>
 * 回复消息基类（公众账号 -> 普通用户）。
 */
public class BaseMsg {
    /**
     * 接收方帐号（收到的OpenID）
     */
    protected String ToUserName;
    /**
     * 开发者微信号
     */
    protected String FromUserName;
    /**
     * 消息创建时间 （整型）
     */
    protected long CreateTime;
    /**
     * 消息类型
     */
    protected String MsgType;

    /**
     * 默认构造器。
     */
    public BaseMsg() {
        super();
    }

    public String getToUserName() {
        return ToUserName;
    }

    public void setToUserName(String toUserName) {
        ToUserName = toUserName;
    }

    public String getFromUserName() {
        return FromUserName;
    }

    public void setFromUserName(String fromUserName) {
        FromUserName = fromUserName;
    }

    public long getCreateTime() {
        return CreateTime;
    }

    public void setCreateTime(long createTime) {
        CreateTime = createTime;
    }

    public String getMsgType() {
        return MsgType;
    }

    public void setMsgType(String msgType) {
        MsgType = msgType;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("BaseMsg{");
        sb.append("ToUserName='").append(ToUserName).append('\'');
        sb.append(", FromUserName='").append(FromUserName).append('\'');
        sb.append(", CreateTime=").append(CreateTime);
        sb.append(", MsgType='").append(MsgType).append('\'');
        sb.append('}');
        return sb.toString();
    }
}